package com.i.picservice.client;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.i.piccommon.constant.ApiResponse;
import com.i.piccommon.domain.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author lewis
 * @type interface
 * @description
 * @since 2024/10/27
 */
@FeignClient(value = "category-service")
public interface CategoryFeignClient {
    @GetMapping
    List<Category> categorys();
    @PostMapping("/page")
    ApiResponse<IPage<Category>> searchPhotoByCategory(@RequestBody Category categoryVO);
}
